﻿using Ewell.BizComponent.UI.Core.VievModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.UI.OutSetl.ViewModel
{
    /// <summary>
    /// 医嘱明细
    /// </summary>
    public class ChargeOrderDetailVm:ViewModelBase
    {
        /// <summary>
        /// 医嘱明细标识
        /// </summary>
        private long _orderDetailId;
        public long orderDetailId
        {
            get => _orderDetailId;
            set
            {
                if (_orderDetailId != value)
                {
                    _orderDetailId = value;
                    OnPropertyChanged(nameof(orderDetailId));
                }
            }
        }
        /// <summary>
        /// 医嘱明细外键标识
        /// </summary>
        private string _orderDetailOutId;
        public string orderDetailOutId
        {
            get => _orderDetailOutId;
            set
            {
                if (_orderDetailOutId != value)
                {
                    _orderDetailOutId = value;
                    OnPropertyChanged(nameof(orderDetailOutId));
                }
            }
        }
        /// <summary>
        /// 医嘱项目标识
        /// </summary>
        private string _orderItemId;
        public string orderItemId
        {
            get => _orderItemId;
            set
            {
                if (_orderItemId != value)
                {
                    _orderItemId = value;
                    OnPropertyChanged(nameof(orderItemId));
                }
            }
        }
        /// <summary>
        /// 医嘱项目名称
        /// </summary>
        private string _orderItemName;
        public string orderItemName
        {
            get => _orderItemName;
            set
            {
                if (_orderItemName != value)
                {
                    _orderItemName = value;
                    OnPropertyChanged(nameof(orderItemName));
                }
            }
        }
        /// <summary>
        /// 开立数量
        /// </summary>
        private decimal _quanlity;
        public decimal quanlity
        {
            get => _quanlity;
            set
            {
                if (_quanlity != value)
                {
                    _quanlity = value;
                    OnPropertyChanged(nameof(quanlity));
                }
            }
        }
        /// <summary>
        /// 顺序
        /// </summary>
        private int? _sequence;
        public int? sequence
        {
            get => _sequence;
            set
            {
                if (_sequence != value)
                {
                    _sequence = value;
                    OnPropertyChanged(nameof(sequence));
                }
            }
        }
        /// <summary>
        /// 药品医嘱标志
        /// </summary>
        private string _drugFlag;
        public string drugFlag
        {
            get => _drugFlag;
            set
            {
                if (_drugFlag != value)
                {
                    _drugFlag = value;
                    OnPropertyChanged(nameof(drugFlag));
                }
            }
        }
        /// <summary>
        /// 业务来源代码
        /// </summary>
        private string _bizSourceCoding;
        public string bizSourceCoding
        {
            get => _bizSourceCoding;
            set
            {
                if (_bizSourceCoding != value)
                {
                    _bizSourceCoding = value;
                    OnPropertyChanged(nameof(bizSourceCoding));
                }
            }
        }
        /// <summary>
        /// 医嘱明细类型代码
        /// </summary>
        private string _orderDetailTypeCoding;
        public string orderDetailTypeCoding
        {
            get => _orderDetailTypeCoding;
            set
            {
                if (_orderDetailTypeCoding != value)
                {
                    _orderDetailTypeCoding = value;
                    OnPropertyChanged(nameof(orderDetailTypeCoding));
                }
            }
        }
        /// <summary>
        /// 处方费用明细列表
        /// </summary>
        private List<PresDetailVm> _presDetails;
        public List<PresDetailVm> presDetails
        {
            get => _presDetails;
            set
            {
                if (_presDetails != value)
                {
                    _presDetails = value;
                    OnPropertyChanged(nameof(presDetails));
                }
            }
        }
    }
}
